package domain;

public class TimeType {

	private Long id;
	private String name;
	private boolean workTime;
	private boolean projectTime;
	private int maxOccurencesDaily;
	private boolean needApproval;
	private boolean weekendsAllowed;
	
	public TimeType() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isWorkTime() {
		return workTime;
	}

	public void setWorkTime(boolean workTime) {
		this.workTime = workTime;
	}

	public boolean isProjectTime() {
		return projectTime;
	}

	public void setProjectTime(boolean projectTime) {
		this.projectTime = projectTime;
	}

	public int getMaxOccurencesDaily() {
		return maxOccurencesDaily;
	}

	public void setMaxOccurencesDaily(int maxOccurencesDaily) {
		this.maxOccurencesDaily = maxOccurencesDaily;
	}

	public boolean isNeedApproval() {
		return needApproval;
	}

	public void setNeedApproval(boolean needApproval) {
		this.needApproval = needApproval;
	}

	public boolean isWeekendsAllowed() {
		return weekendsAllowed;
	}

	public void setWeekendsAllowed(boolean weekendsAllowed) {
		this.weekendsAllowed = weekendsAllowed;
	}

	@Override
	public String toString() {
		return getName();
	}			
}
